<template>
  <div  class="type-box">
    <div class="box1" v-for="(item, index) in list" :key="index" @click="type(index)">
      <img :src="item.iconUrl" alt="" />
      <span>{{ item.name }}</span>
    </div>
  </div>
</template>

<script>
export default {
  props: ["list"],
  methods: {
    type(index){
      this.$router.push({ 
           path: `/type/${index}`,
      })
    }
  },
};
</script>

<style>
</style>